package com.todod.model;

import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author dyl
 * @date 2021-03-12
 */
@TableName("LTCLOUD_ZSGL_DB_DEV.project_info")
public class ProjectInfo {

	/** 主键id */
	@TableId("xg_pk_id")
	private Long id;
	/** 公司id */
	@TableField("xg_department_id")
	private Long departmentId;
	/** 目录id */
	@TableField("xg_catalog_id")
	private Long catalogId;
	/** 项目类型 */
	@TableField("xg_type")
	private String type;
	/** 项目编号 */
	@TableField("xg_sort_num")
	private String sortNum;
	/** 项目名称 */
	@TableField("xg_xiangmumingcheng_na")
	private String xiangmumingcheng;
	/** 是否展示api */
	@TableField("xg_ifzs_k1")
	private String ifzs;
	/** 项目状态 */
	@TableField("xg_status_k1")
	private String status;
	/** 创建用户id */
	@TableField("xg_createuser_id")
	private Long createuserId;
	/** 创建时间 */
	@TableField("xg_createtime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createtimeTi;
	/** 修改用户名id */
	@TableField("xg_modifyuser_id")
	private Long modifyuserId;
	/** 修改时间 */
	@TableField("xg_modifytime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime modifytimeTi;

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private Long parentId; // 创建人姓名
	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String typeName; // 创建人姓名
	@TableField(exist = false) // 表示该属性在数据表里不存在
	private List<ProjectInfo> children; // 创建人姓名

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	public Long getCatalogId() {
		return catalogId;
	}

	public void setCatalogId(Long catalogId) {
		this.catalogId = catalogId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSortNum() {
		return sortNum;
	}

	public void setSortNum(String sortNum) {
		this.sortNum = sortNum;
	}

	public String getXiangmumingcheng() {
		return xiangmumingcheng;
	}

	public void setXiangmumingcheng(String xiangmumingcheng) {
		this.xiangmumingcheng = xiangmumingcheng;
	}

	public String getIfzs() {
		return ifzs;
	}

	public void setIfzs(String ifzs) {
		this.ifzs = ifzs;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Long getCreateuserId() {
		return createuserId;
	}

	public void setCreateuserId(Long createuserId) {
		this.createuserId = createuserId;
	}

	public LocalDateTime getCreatetimeTi() {
		return createtimeTi;
	}

	public void setCreatetimeTi(LocalDateTime createtimeTi) {
		this.createtimeTi = createtimeTi;
	}

	public Long getModifyuserId() {
		return modifyuserId;
	}

	public void setModifyuserId(Long modifyuserId) {
		this.modifyuserId = modifyuserId;
	}

	public LocalDateTime getModifytimeTi() {
		return modifytimeTi;
	}

	public void setModifytimeTi(LocalDateTime modifytimeTi) {
		this.modifytimeTi = modifytimeTi;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public List<ProjectInfo> getChildren() {
		return children;
	}

	public void setChildren(List<ProjectInfo> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "ProjectInfo [id=" + id + ", departmentId=" + departmentId + ", catalogId=" + catalogId + ", type="
				+ type + ", sortNum=" + sortNum + ", xiangmumingcheng=" + xiangmumingcheng + ", ifzs=" + ifzs
				+ ", status=" + status + ", createuserId=" + createuserId + ", createtimeTi=" + createtimeTi
				+ ", modifyuserId=" + modifyuserId + ", modifytimeTi=" + modifytimeTi + ", parentId=" + parentId
				+ ", typeName=" + typeName + ", children=" + children + "]";
	}

}
